import request from "@/utils/request"

// app版本列表
export function versionList(query) {
  return request({
    url: "/system/app/version/list",
    method: "post",
    data: query,
  })
}

// 修改app版本开关
export function versionSwitch(data) {
  return request({
    url: "/system/app/version/switch",
    method: "post",
    data: data,
  })
}

// 上传app版本文件
export function uploadAppversion(data) {
  return request({
    url: "/system/app/version/upload/appVersion",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: data,
  })
}

// 根据id删除
export function deleteAppversion(data) {
  return request({
    url: "/system/app/version/delete",
    method: "post",
    data: data,
  })
}
